//
//  PromptView.m
//  bitcoin
//
//  Created by caiyajun on 2018/5/25.
//  Copyright © 2018年 比特币. All rights reserved.
//

#import "PromptView.h"
@interface PromptView()
@property (weak, nonatomic) IBOutlet UIView *contentView;
@property (weak, nonatomic) IBOutlet UIButton *sureBtn;


@end
@implementation PromptView
+ (instancetype)xib
{
    return [[NSBundle mainBundle] loadNibNamed:@"PromptView" owner:self options:nil][0];
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    
    //    self.center = CGPointMake(ScreenWidth / 2, ScreenHeight * 2/5);
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];
    view.backgroundColor = [UIColor blackColor];
    view.alpha = 0.75;
    [self addSubview:view];
    self.alpha = 1;
    self.frame = CGRectMake(0, 0, ScreenWidth, ScreenHeight);
    [self addSubview:self.contentView];
    
    [self.sureBtn setBackgroundImage:[UIImage imageWithColor:RGBColor(86, 54, 157)] forState:(UIControlStateHighlighted)];
    
}
- (IBAction)knowAction:(UIButton *)sender {
    if (self.knowActionBlock) {
        self.knowActionBlock(@"");
    }
}

@end
